package com.yf1706.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.yf1706.bean.EmpAttachment;

public interface IEmpAttachmentJDAO extends CrudRepository<EmpAttachment, Integer>{
	public EmpAttachment findByAttachmentId(int attachmentId);
	//根据员工编号查找员工的附件对象集合
	@Query("select ea from EmpAttachment ea where ea.emp.empId=:empId")
	public List<EmpAttachment> findByEmpId(@Param("empId")int empId);
}
